//
//  LiveDetailUiParameter.m
//  DuTe
//
//  Created by Gikki Ares on 2020/12/18.
//  Copyright © 2020 vgemv. All rights reserved.
//

#import "JsBottomInputBarBetaVm.h"


@interface JsBottomInputBarBetaVm()



@end

@implementation JsBottomInputBarBetaVm


- (instancetype)init {
	if(self = [super init]) {
		//初始化ui参数.
		self.mf_barHeight = 50;
		self.mf_barWidth = [[UIScreen mainScreen] bounds].size.width;
		
		self.mf_likeTrailing = 10;
		self.mf_likeWidth = 36;
		self.mf_likeHeight = self.mf_barHeight;
		
		self.mf_btnSpacing = 8;
		self.mf_shareWidth = self.mf_likeWidth;
		self.mf_shareHeight = self.mf_likeHeight;
		
		self.mf_pickWidth = self.mf_likeWidth;
		self.mf_pickHeight = self.mf_likeHeight;
		
		self.mf_seperatorWidth = 1;
		self.mf_seperatorSpacing = 16;
		self.mf_seperatorTop = 15;
		
		self.mf_expressionWidth = self.mf_likeWidth;
		self.mf_expressionHeight = self.mf_likeHeight;
		
		self.mf_voiceHeight = self.mf_likeHeight;
		
		self.mstr_placeholder = @"写评论...";

	}
	return self;
}

- (CGSize)wrapperContentSize {
	return CGSizeMake(self.mf_barWidth,self.mf_barHeight);
}

-(CGRect)likeBtnFrame {
	CGFloat x = self.mf_barWidth - self.mf_likeWidth -self.mf_likeTrailing;
	CGFloat y = (self.mf_barHeight - self.mf_likeHeight) / 2;
	CGFloat w = self.mf_likeWidth;
	CGFloat h = self.mf_likeHeight;
	return CGRectMake(x, y , w, h);
}

- (CGRect)shareBtnFrame {
	CGFloat x = self.mf_barWidth - self.mf_likeWidth - self.mf_shareWidth - self.mf_btnSpacing - self.mf_likeTrailing;
	CGFloat y = (self.mf_barHeight - self.mf_shareHeight) / 2;
	CGFloat w = self.mf_shareWidth;
	CGFloat h = self.mf_shareHeight;
	return CGRectMake(x, y , w, h);
}

- (CGRect)pickBtnFrame {
	CGFloat x = self.mf_barWidth - self.mf_likeWidth - self.mf_shareWidth - self.mf_btnSpacing*2 - self.mf_likeTrailing - self.mf_pickWidth;
	CGFloat y = (self.mf_barHeight - self.mf_pickHeight) / 2;
	CGFloat w = self.mf_pickWidth;
	CGFloat h = self.mf_pickHeight;
	return CGRectMake(x, y , w, h);
}

- (CGRect)expressionBtnFrame {
	CGFloat x = self.mf_barWidth - self.mf_likeWidth - self.mf_shareWidth - self.mf_btnSpacing*2 - self.mf_likeTrailing - self.mf_pickWidth - self.mf_seperatorWidth - self.mf_seperatorSpacing*2 - self.mf_expressionWidth;
	CGFloat y = (self.mf_barHeight - self.mf_expressionHeight) / 2;
	CGFloat w = self.mf_expressionWidth;
	CGFloat h = self.mf_expressionHeight;
	return CGRectMake(x, y , w, h);
}

- (CGRect)voiceBtnFrame {
	CGRect rc_expressionBtnFrame = [self expressionBtnFrame];
	CGFloat x = 0;
	CGFloat y = (self.mf_barHeight - self.mf_voiceHeight) / 2;
	CGFloat w = self.mf_barWidth - rc_expressionBtnFrame.origin.x;
	CGFloat h = self.mf_expressionHeight;
	return CGRectMake(x, y , w, h);
}






@end
